#!/bin/sh
docker run --rm -e GO111MODULE=on -e GOPROXY=https://goproxy.io -v $(pwd):/plugins kong/go-plugin-tool:2.0.4-centos-7 build main.go
rm -rf ../kong-custom-plugin/alpine-lua/main.so
mv main.so ../kong-custom-plugin/alpine-lua/
cd ../kong-custom-plugin/alpine-lua/
sh build.sh
cd ../compose/
docker-compose up -d